package com.dao;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.util.List;

public interface SubscribeDao {
    @Select("select subscribeUserId from subscribe where userId=#{userId};")
    List<Integer> getSubscribeUserIds(String userId);

    @Insert("insert into subscribe values(#{userId},#{id});")
    void add(int userId,int id);

    @Delete("delete from subscribe where userId=#{userId} and subscribeUserId=#{id};")
    void delete(int userId,int id);
}
